home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19970929-19971216
/
000340_news@newsmaster….columbia.edu _Sat Dec 6 00:17:54 1997.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
6KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id AAA01100
for <kermit.misc@watsun.cc.columbia.edu>; Sat, 6 Dec 1997 00:17:50 -0500 (EST)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id AAA01686
for kermit.misc@watsun; Sat, 6 Dec 1997 00:17:49 -0500 (EST)
Path: news.columbia.edu!news.new-york.net!newsfeed.ecrc.net!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!news-peer.sprintlink.net!news-pull.sprintlink.net!news-in-east.sprintlink.net!news.sprintlink.net!Sprint!204.96.197.5!newsfeeder.servtech.com!post.servtech.com!hal9000.buf.servtech.com!rchandra
From: rchandra@hal9000.buf.servtech.com (Dr. R. Chandra)
Newsgroups: comp.protocols.kermit.misc
Subject: set host name service broke 5A(190) to 6.0.192
Date: 5 Dec 1997 20:58:30 GMT
Organization: private Linux system
Lines: 119
Message-ID: <669ptm$7c3$1@post.servtech.com>
Reply-To: rchandra@letter.com
NNTP-Posting-Host: hal9000.buf.servtech.com
Summary: 5A(190) set host name service worked; doesn't work in 6.0.192
Keywords: host telnet port service expect
Xref: news.columbia.edu comp.protocols.kermit.misc:8135
I used to use "set host name service" in 5A(190), primarily in the
following incantation:
set host smtp.servtech.com smtp
After building 6.0.192 and running the same script, the "service" part
would always get forced to telnet. This, of course, broke things in a
big way. Here may be some relevant configuration data:
ttyp0 15:22 rchandra@hal9000:~ 0> kermit
C-Kermit 6.0.192, 6 Sep 96, for Linux
Copyright (C) 1985, 1996,
Trustees of Columbia University in the City of New York.
Default file-transfer mode is BINARY
Type ? or HELP for help.
hal9000 Linux Kermit *show ver
Versions:
C-Kermit 6.0.192, 6 Sep 96
Numeric: 600192
UNIX Communications support, 6.0.169, 6 Sep 96 for Linux
UNIX File support, 6.0.115 6 Sep 96 for Linux
C-Kermit Protocol Module 6.0.095, 6 Sep 96
C-Kermit functions, 6.0.133, 6 Sep 96
Command package 6.0.088, 6 Sep 96
User Interface 6.0.177, 6 Sep 96
CONNECT Command for UNIX, 6.0.083, 6 Sep 96
Network support, 6.0.078, 6 Sep 1996
hal9000 Linux Kermit *show fea
Major optional features included:
Network support (type SHOW NET for further info)
Hardware flow control
External XYZMODEM protocol support
REDIRECT command
RESEND command
Fullscreen file transfer display
Control-character unprefixing
Major optional features not included:
No DIAL command
No SCRIPT command
No character-set translation
Compiled Dec 1 1997 19:00:40, options:
DEBUG TLOG BIGBUFOK XFRCAN CK_SPEED CK_APC CK_AUTODL CK_MKDIR NODIAL WHATAMI
DYNAMIC CMDDEP=64 CKMAXPATH=1023 MAXGETPATH=128 CMDBL=4072 VNAML=64
ARRAYREFLEN=128 FORDEPTH=10 MAXTAKE=32 MACLEVEL=64 MAC_MAX=256 MSENDMAX=100
MAXDDIR=32 MAXDNUMS=4095 UNIX DIRENT RENAME CK_TMPDIR CK_TTYFD NETCONN
TCPSOCKET NOLISTEN SOL_SOCKET TDP_NODELAY RLOGCODE CONGSPD SELECT NOFILEH
NOKVERBS _POSIX_SOURCE __linux__ POSIX i386 __STDC__ __GNUC__ CK_ANSIC
CK_ANSILIBS _POSIX_JOB_CONTROL CK_POSIX_SIG CK_CURSES CK_WREFRESH CK_PCT_BAR
CK_RTSCTS POSIX_CRTSCTS CK_SYSINI CK_INI_A CK_TTGWSIZ CK_NAWS DCMDBUF
CK_RECALL CK_TIMERS
hal9000 Linux Kermit *show net
Supported networks:
TCP/IP
SET TELNET parameters:
echo: local
NVT newline-mode: on (cr-lf)
BINARY newline-mode: raw (cr)
binary-mode: accepted, host=NVT, c-kermit=NVT
bug binary-me-means-u-too: off
bug binary-u-means-me-too: off
terminal-type: none (dumb will be used)
Active network connection:
Host: none via: tcp/ip
Keepalive is on
Linger is off
Nodelay is off
Send buffer is default size
Receive buffer is default size
hal9000 Linux Kermit *q
ttyp0 15:30 rchandra@hal9000:~ 0> exit
I hacked around this to get it to work, basically by creating my own
global variable called tcpsvc, and anywhere it looks like the 6.0.192
code works with a service name or number string, it copies the
discovered string to this global buffer. Also, anywhere it looks like
it's trying to set the service (netopen() for example), it checks to
see if the first character in this global buffer is not a null, and
sets pointers, does a strcpy(), etc. as necessary to prevent
defaulting to "telnet". And finally, in netclos(), where other things
(e.g., the ipaddr) are nulled out, tcpsvc[0] gets set to a null.
This seems like a really messy way to do this, but for lack of time to
study every line in every source file and analyzing program flow, it
seems to work OK.
BTW, I doubt this is related, but just in the interest of full
disclosure: I made some other mods to the code to enable me to use
Kermit as the dialer for PPP (pppd). This involved a few changes,
mainly to ckutio.c. I set up a global flag which is initialized to
false, and only gets set to true by encountering EXIT or QUIT. In the
ttclos() routine, if this flag is not set, it returns without setting
the speed to B0 (which would hang up...not particularly useful when
PPP negotiations are in progress). Thus, the line only gets hung up
by "other forces" (such as the HUPCL bit :^). Additionally, the
programs (scripts) that run when the IP layer goes up and the modem is
to be hung up (ip-up script/program and "disconnect <program/script>"
argument) manage the lockfiles, which enables cooperation between
Kermit and pppd. Lastly, if Kermit discovers that the number in the
lockfile is not its own PID, it prints a warning and does not attempt
to remove (unlink(2)) the lockfile(s).
In summary, with a service argument (both name:svc and name svc), set
host seems to have broken somewhere between 5A(190) and 6.0.192.
--
Oooooo-oooo-oooo-ooooo, Oooooo-oooo-oooo-ooooo, Ooooo-weem-oh-wum-ooo-ayyy
In the jungle, the silicon jungle, the process sleeps tonight.
Joe Philipps <rchandra@letter.com> http://www.servtech.com/public/rchandra/